package switch_example_class;

public class SwitchExampleClass {
	
	public void switchExample(){
		switch(expresion){
		case constant1:
			action1;
			break; // will prevent that the other cases or also executes
		case connstant2:
			action2;
			break;
		default:
		}
	}
	
	public boolean switchExampleObject(){
		switch(game.getLevel()){
		case 0:
			return true;
		case 1:
			if(game.getLevel() == 1){
				if(game.getLevel().equalsIgnoreCase(gameBot.getCategory())){
					return true;
				}		
			}
		case 2:
			if(game.getLevel().equalsIgnoreCase(gameBot.getCategory)){
				return true;
			}
		}
	}

}
